import request from '@/utils/request'

// 获取题库列表
export const getQuestionList = params => {
  return request({
    url: '/question/list',
    params
  })
}

// 更改状态
export const changeStatus = id => {
  return request({
    url: '/question/status',
    method: 'POST',
    data: { id }
  })
}

// 删除
export const delQuestion = id => {
  return request({
    url: '/question/remove',
    method: 'POST',
    data: { id }
  })
}
